﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="RelegateAdd.aspx.cs" Inherits="BasicBase_DepartmentRelegate_RelegateAdd"
    StylesheetTheme="Content" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%" cellpadding="0" cellspacing="0" class="intable">
        <caption>
            <asp:Label runat="server" ID="caption">单位区域归属</asp:Label>
        </caption>
        <tr>
            <td style="width: 13%; text-align: left;">
                选择单位：
            </td>
            <td>
                <asp:DropDownList ID="ddlDepartmentClass" runat="server" AutoPostBack="True" DataTextField="AliasName"
                    DataValueField="DepartmentID" OnSelectedIndexChanged="ddlDepartmentClass_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlDepartment" runat="server" DataTextField="FullName" 
                    DataValueField="DepartmentID" AutoPostBack="True" 
                    onselectedindexchanged="ddlDepartment_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 13%; text-align: left;">
                所属区域：
            </td>
            <td>
                <asp:DropDownList ID="ddlCity" runat="server" DataTextField="ItemName" DataValueField="ItemId"
                    OnSelectedIndexChanged="ddlCity_SelectedIndexChanged" AppendDataBoundItems="True"
                    AutoPostBack="True">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlRegion" runat="server" DataTextField="ItemName" DataValueField="ItemID"
                    AppendDataBoundItems="True">
                </asp:DropDownList>
                <asp:CheckBox ID="cbLevel" runat="server" Text="地级市辖区" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="ddlRegion" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 13%; text-align: left;">
                上级单位：
            </td>
            <td>
                <asp:DropDownList ID="ddlParent" runat="server" DataTextField="FullName" DataValueField="DepartmentID"
                    AppendDataBoundItems="True">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="ddlParent" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 13%; text-align: left;">
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnOk" runat="server" Text="保存" OnClick="btnOk_Click" />
                <input id="ButtonCancel" class="button_default" onclick="window.location='RelegateReport.aspx';"
                    type="button" value="取消" />
            </td>
        </tr>
        <tr>
            <td style="width: 13%; text-align: left;">
                &nbsp;
            </td>
            <td>
                <div class="prompt">
                    <asp:Label ID="Prompt" runat="server" />
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
